package com.eleme.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eleme.business.entity.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * 商家表Mapper
 */
@Mapper
@Repository
public interface BusinessMapper extends BaseMapper<Business> {
    List<Business> queryBusiness();
    @Select("select * from business where orderTypeId=#{orderTypeId} order by businessId")
    List<Business> listBusinessByOrderTypeId(Integer orderTypeId);
    @Select("select * from business where businessId=#{businessId}")
    Business getBusinessById(Integer businessId);
} 